import type { AppRouteModule } from '/@/router/types';
import { LAYOUT } from '/@/router/constant';

// 系统维护
const dashboard: AppRouteModule = {
  path: '/cloudConfig',
  name: 'cloudConfig',
  component: LAYOUT,
  redirect: '/cloudConfig/storageConfig',
  meta: {
    icon: 'mdi:cogs',
    title: '系统维护',
    orderNo: 30,
  },
  children: [
    {
      path: 'brandList',
      name: 'brandList',
      component: () => import('/@/views/brand/index.vue'),
      meta: {
        title: '品牌商',
      },
    },
    {
      path: 'objectModel',
      name: 'objectModel',
      component: () => import('/@/views/deviceModel/index.vue'),
      meta: {
        title: '物模型',
      },
    },
    {
      path: 'Model',
      name: 'Model',
      component: () => import('/@/views/newModel/newindex.vue'),
      meta: {
        title: '新物模型',
        hideMenu: true,
      },
    },
    {
      path: 'modeledite',
      name: 'modeledite',
      component: () => import('/@/views/newModel/edite/index_page.vue'),
      meta: {
        title: '物模型编辑',
        hideMenu: true,
      },
    },
    {
      path: 'hscloudConfig',
      name: 'HscloudConfig',
      component: () => import('/@/views/system/serverconfig/index.vue'),
      meta: {
        title: '上云配置',
      },
    },
    {
      path: 'sysconfig',
      name: 'sysconfig',
      component: () => import('/@/views/system/sysconfig/index.vue'),
      meta: {
        title: '系统配置',
      },
    },
  ],
};

export default dashboard;
